<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <h1>您的生日是：{{birth}}</h1>
    </div>

    <script src="node_modules/vue/dist/vue.js"></script>
    <script>
        var vue = new Vue({
            el: "#app",
            data:{
                birthday: 1565588398790
            },
            computed:{
                birth(){
                    console.log("birth()");
                    var date = new Date(this.birthday);
                    return date.getFullYear() + "--" + (date.getMonth()+1) + "--" + date.getDate();
                }
            }
        });
    </script>
</body>
</html>